<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TrackerControl: net.kollnig.missioncontrol.data.InternetBlocklist Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="ic_launcher_round.png"/></td>
  <td id="projectalign">
   <div id="projectname">TrackerControl
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>net</b></li><li class="navelem"><b>kollnig</b></li><li class="navelem"><b>missioncontrol</b></li><li class="navelem"><b>data</b></li><li class="navelem"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html">InternetBlocklist</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">net.kollnig.missioncontrol.data.InternetBlocklist Class Reference</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5b23978697352b293484ab151efcaa2f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html#a5b23978697352b293484ab151efcaa2f">loadSettings</a> (Context c)</td></tr>
<tr class="separator:a5b23978697352b293484ab151efcaa2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af49268a8cad86448b7f9d80ac207e595"><td class="memItemLeft" align="right" valign="top">Set&lt; Integer &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html#af49268a8cad86448b7f9d80ac207e595">getBlocklist</a> ()</td></tr>
<tr class="separator:af49268a8cad86448b7f9d80ac207e595"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76345d7f70f70e809c325008fd5714b6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html#a76345d7f70f70e809c325008fd5714b6">clear</a> ()</td></tr>
<tr class="separator:a76345d7f70f70e809c325008fd5714b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0ae4ac991392b9f78175cc74d378181"><td class="memItemLeft" align="right" valign="top">synchronized void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html#ad0ae4ac991392b9f78175cc74d378181">block</a> (int uid)</td></tr>
<tr class="separator:ad0ae4ac991392b9f78175cc74d378181"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b6f61095d73f9cdd9da503057337717"><td class="memItemLeft" align="right" valign="top">synchronized void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html#a2b6f61095d73f9cdd9da503057337717">unblock</a> (int uid)</td></tr>
<tr class="separator:a2b6f61095d73f9cdd9da503057337717"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a558dc3473b9cef5fadaa032f9dadbdf3"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html#a558dc3473b9cef5fadaa032f9dadbdf3">blockedInternet</a> (int uid)</td></tr>
<tr class="separator:a558dc3473b9cef5fadaa032f9dadbdf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ac4a5ae74af64bfe89e3d6ddbd7bb5e38"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html">InternetBlocklist</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html#ac4a5ae74af64bfe89e3d6ddbd7bb5e38">getInstance</a> (Context c)</td></tr>
<tr class="separator:ac4a5ae74af64bfe89e3d6ddbd7bb5e38"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ac18cc57161da375af88a21f04011161e"><td class="memItemLeft" align="right" valign="top"><a id="ac18cc57161da375af88a21f04011161e" name="ac18cc57161da375af88a21f04011161e"></a>
static final String&#160;</td><td class="memItemRight" valign="bottom"><b>SHARED_PREFS_INTERNET_BLOCKLIST_APPS_KEY</b> = &quot;INTERNET_BLOCKLIST_APPS_KEY&quot;</td></tr>
<tr class="separator:ac18cc57161da375af88a21f04011161e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Stores those apps whose access to internet is blocked. </p>
<p >Analogous implementation to <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_blocklist.html">TrackerBlocklist</a>. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ad0ae4ac991392b9f78175cc74d378181" name="ad0ae4ac991392b9f78175cc74d378181"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0ae4ac991392b9f78175cc74d378181">&#9670;&nbsp;</a></span>block()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized void net.kollnig.missioncontrol.data.InternetBlocklist.block </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>uid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Block internet for a given app</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uid</td><td>Uid of app to block internet </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a558dc3473b9cef5fadaa032f9dadbdf3" name="a558dc3473b9cef5fadaa032f9dadbdf3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a558dc3473b9cef5fadaa032f9dadbdf3">&#9670;&nbsp;</a></span>blockedInternet()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean net.kollnig.missioncontrol.data.InternetBlocklist.blockedInternet </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>uid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Check if internet is blocked for given app</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uid</td><td>Uid of app to check </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>If internet is blocked for given app </dd></dl>

</div>
</div>
<a id="a76345d7f70f70e809c325008fd5714b6" name="a76345d7f70f70e809c325008fd5714b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76345d7f70f70e809c325008fd5714b6">&#9670;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void net.kollnig.missioncontrol.data.InternetBlocklist.clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Clear blocklist </p>

</div>
</div>
<a id="af49268a8cad86448b7f9d80ac207e595" name="af49268a8cad86448b7f9d80ac207e595"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af49268a8cad86448b7f9d80ac207e595">&#9670;&nbsp;</a></span>getBlocklist()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Set&lt; Integer &gt; net.kollnig.missioncontrol.data.InternetBlocklist.getBlocklist </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Get set of apps' uids which shan't access internet</p>
<dl class="section return"><dt>Returns</dt><dd>Set of uids </dd></dl>

</div>
</div>
<a id="ac4a5ae74af64bfe89e3d6ddbd7bb5e38" name="ac4a5ae74af64bfe89e3d6ddbd7bb5e38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4a5ae74af64bfe89e3d6ddbd7bb5e38">&#9670;&nbsp;</a></span>getInstance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html">InternetBlocklist</a> net.kollnig.missioncontrol.data.InternetBlocklist.getInstance </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Singleton getter for <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html">InternetBlocklist</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>context used to access <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html">InternetBlocklist</a> from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current instance of the <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_internet_blocklist.html">InternetBlocklist</a>, if none, a new instance is created. </dd></dl>

</div>
</div>
<a id="a5b23978697352b293484ab151efcaa2f" name="a5b23978697352b293484ab151efcaa2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b23978697352b293484ab151efcaa2f">&#9670;&nbsp;</a></span>loadSettings()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void net.kollnig.missioncontrol.data.InternetBlocklist.loadSettings </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Load past settings</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>Context </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2b6f61095d73f9cdd9da503057337717" name="a2b6f61095d73f9cdd9da503057337717"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b6f61095d73f9cdd9da503057337717">&#9670;&nbsp;</a></span>unblock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized void net.kollnig.missioncontrol.data.InternetBlocklist.unblock </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>uid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Unblock internet for a given app</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uid</td><td>Uid of app to unblock internet </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>app/src/main/java/net/kollnig/missioncontrol/data/InternetBlocklist.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
